package com.koron.tool.frame;

import java.awt.event.ActionEvent;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;
import javax.swing.KeyStroke;

import com.koron.tool.MainFrame;
import com.koron.tool.dialog.SQLAssistantDialog;

/**
 * SQL语句助手
 * 
 * @author swan
 *
 */
public class SqlAssistantAction extends AbstractAction {
	private MainFrame frame;

	public SqlAssistantAction(MainFrame frame) {
		this.frame = frame;
		//resourceBuddle = ResourceBundle.getBundle(MainFrame.RESOURCEBUDDLE, frame.getLocale());
		putValue(NAME, "SQL助手");
		putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_A, InputEvent.CTRL_MASK+InputEvent.ALT_MASK));
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		new SQLAssistantDialog(frame).setVisible(true);
	}
}
